package risk.client.logic;

import java.util.Random;

/**
 * A simple dice class for throwing a dice
 * 
 * @author: Johan
 */
public class Dice {
    private int DICE_SIZE = 6;

    /**
     * Throw a dice
     * 
     * @author: Johan
     * @return nextInt random from dice
     */
    public int throwDice() {
        Random random = new Random(System.nanoTime());
            
        return random.nextInt(DICE_SIZE)+1;
    }
}